package com.ezjie.ielts.task;

import java.util.HashMap;
import java.util.Map;

import com.ezjie.ielts.core.http.HttpAPI;
import com.ezjie.ielts.core.http.HttpRequestCallBack;
import com.ezjie.ielts.core.http.ServerInterfaceDefinition;

import android.content.Context;

public class LogoutTask {

	private Context context;

	public LogoutTask(Context context) {
		this.context = context;
	}
	/**
	 * 退出登录
	 * @param username
	 * @param password
	 * @param type   类型 1手机  2邮箱
	 * @param httpRequestCallBack
	 */
	public void doLogout(HttpRequestCallBack httpRequestCallBack){
		Map<String, String> params = new HashMap<String, String>();
		
		HttpAPI.getInstance(context,true).doPostRequest(
				ServerInterfaceDefinition.OPT_USER_LOGIN, params,
				httpRequestCallBack);
	}
}
